Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

basic-sliding-viewport

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-sliding-viewport

Presents list items in a viewport such that only a single item is visible at a time. Navigating between items will be represented with a horizontal visual sliding effect.

  • 0.7.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

API Documentation

SlidingViewport ⇐ ElementBase

Presents list items in a viewport such that only a single item is visible at a time.

Navigating between items will be represented with a horizontal visual sliding effect. For more complex visual effects, see basic-animation-stage, which takes advantage of the Web Animations API.

This component handles the rendering responsibilities for the basic-carousel component.

This component currently requires that you explicitly apply a size to it.

Kind: global class Extends: ElementBase

slidingViewport.selectedFraction : number

A fractional value indicating how far the user has currently advanced to the next/previous item. E.g., a selectedFraction of 3.5 indicates the user is halfway between items 3 and 4.

For more details, see the fractionalSelection helper functions.

Kind: instance property of SlidingViewport

Keywords

FAQs

Package last updated on 13 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc